﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site3forAdmin.Master" AutoEventWireup="true" CodeBehind="ViewOrdersforAdmin.aspx.cs" Inherits="WebApp.ViewOrdersforAdmin" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder2" runat="server">
<script type="text/javascript" language="javascript">
function DeleteConfirmation(item)
{
if (confirm("Are you sure you want to delete selected records " + item + " ^^~♥ ?")==true)
   return true;
else
   return false;
}
</script>
    <table style="width:100%;">
        <tr>
            <td>
                <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
                    EnableModelValidation="True" 
                    onrowcancelingedit="GridView1_RowCancelingEdit" 
                    onrowdeleting="GridView1_RowDeleting" onrowediting="GridView1_RowEditing" 
                    onrowupdating="GridView1_RowUpdating" 
                    onrowdatabound="GridView1_RowDataBound">
                    <Columns>
                        <asp:BoundField DataField="ordersid" HeaderText="Orders id" />
                        <asp:BoundField DataField="cusID" HeaderText="Customer ID" />
                        <asp:BoundField DataField="receivername" HeaderText="Receiver Name" />
                        <asp:BoundField DataField="receiveraddress" HeaderText="Receiver Address" />
                        <asp:BoundField DataField="receiverphone" HeaderText="Receiver Phone" />
                        <asp:BoundField DataField="senddate" HeaderText="Send Date" />
                        <asp:BoundField DataField="receivedate" HeaderText="Receive Date" />
                        <asp:BoundField DataField="weight(kg)" HeaderText="Weight" />
                        <asp:BoundField DataField="provinceID" HeaderText="Province ID" />
                        <asp:BoundField DataField="serID" HeaderText="Service ID" />
                        <asp:BoundField DataField="price" HeaderText="Price" />
                        <asp:BoundField DataField="status" HeaderText="Status" />
                        <asp:CommandField ShowEditButton="True" />
                        <asp:CommandField ShowDeleteButton="True" />
                    </Columns>
                </asp:GridView>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="Label1" runat="server" Text="Search by Orders ID"></asp:Label>
                <asp:TextBox ID="txtSearch" runat="server" 
                    ontextchanged="txtSearch_TextChanged"></asp:TextBox>
                <asp:Button ID="btnsearch" runat="server" Text="Search" 
                    onclick="btnsearch_Click" />
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td>
                <asp:Button ID="btnOK" runat="server" Text="OK" />
            </td>
        </tr>
    </table>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
</asp:Content>
